# -*- coding:utf-8 -*-
from rest_framework import serializers

from Apps.System.models.role_menu import Role


class RoleSer(serializers.ModelSerializer):

    class Meta:
        model = Role
        fields = "__all__"


class PostRoleSer(serializers.ModelSerializer):

    class Meta:
        model = Role
        exclude = ["user"]
